package com.qf.shopping.dto.carDTO;

import com.qf.shopping.pojo.car.Car;
import com.qf.shopping.pojo.car.CarMake;

public class CarMakeDTO {

    //id
    private Long id;
    //主品牌ID
    private Long brandId;

    //主品牌名称
    private String brandName;

    //品牌名称
    private String name;

    //logo url
    private String logoUrl;

    //创建时间
    private Long createTime;

    public CarMakeDTO() {
    }

    public CarMakeDTO(CarMake c){
        this.id=c.getId();
        this.brandId=c.getBrandId();
        this.name=c.getName();
        this.logoUrl=c.getLogoUrl();
        this.createTime=c.getCreateTime();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBrandId() {
        return brandId;
    }

    public void setBrandId(Long brandId) {
        this.brandId = brandId;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLogoUrl() {
        return logoUrl;
    }

    public void setLogoUrl(String logoUrl) {
        this.logoUrl = logoUrl;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "CarMakeDTO{" +
                "id=" + id +
                ", brandId=" + brandId +
                ", brandName='" + brandName + '\'' +
                ", name='" + name + '\'' +
                ", logoUrl='" + logoUrl + '\'' +
                ", createTime=" + createTime +
                '}';
    }
}
